package cn.xyinping.pet.domain;

import cn.xyinping.basic.domain.BasicDomain;
import cn.xyinping.org.domain.Shop;
import cn.xyinping.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 处理完成后的表
 */
@Data
public class Pet extends BasicDomain {
    private String name;
    private String resources;
    private BigDecimal saleprice;
    // 下架时间
    @JsonFormat(pattern = "yyyy--MM-dd", timezone = "GTM+8")
    private Date offsaletime;
    // 上架时间
    @JsonFormat(pattern = "yyyy--MM-dd", timezone = "GTM+8")
    private Date onsaletime;
    // 处理状态
    private Integer state = 0;
    private BigDecimal costprice;
    // 处理完成的时间
    @JsonFormat(pattern = "yyyy--MM-dd", timezone = "GTM+8")
    private Date createtime = new Date();
    // 宠物类型
    private Long type_id;
    private PetType type;
    private Long shop_id;
    private Shop shop;
    private Long user_id;
    private User user;
    private Long search_master_msg_id;
    private Integer store_number;
    private PetDetail detail = new PetDetail();
    // 下架
    public static final int STATE_OFFLINE = 0;
    // 上架
    public static final int STATE_ONLINE = 1;


}
